﻿using System;
using System.Collections.Generic;
using System.DirectoryServices;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;
using Domain.ActiveDirectory.Accessor;
using Domain.ActiveDirectory.Model;
using Domain.Context;
using Domain.Provider;
using Domain.ActiveDirectory.Provider;

namespace Domain.Provider
{
    public class NMCDataProvider : IDataProvider<User>
    {
        private IActiveDirectoryDataProvider _adProvider;

        public NMCDataProvider(IActiveDirectoryDataProvider adProvider)
        {
            _adProvider = adProvider;
        }

        public IEnumerable<User> Entities
        {
            get { return _adProvider.GetUsersByTitle("Neighborhood Marketing Coordinator"); }
        }

        public void SaveEntity(User entity, IPrincipal user)
        {
            throw new InvalidOperationException();
        }

        public void DeleteEntity(User entity, IPrincipal user)
        {
            throw new InvalidOperationException();
        }
    }
}
